home *** CD-ROM | disk | FTP | other *** search
- #
- # $Id: make.subdirs,v 1.7 1995/10/03 09:08:37 steppler Exp $
- #
- # Common targets of Makefiles within subdirectories
- #
-
- clean veryclean distclean::
- rm -f core *.o *~ *.bak make.log tags TAGS
-
- veryclean distclean::
- rm -f *.orig
-
- distclean::
- rm -f .depend
-
- depend::
- $(CC) $(CFLAGS) $(DEPFLAGS) *.c >.depend
-
- links::
- -@$(TOPDIR)/bin/newlink $(TOPDIR) $(CUR_DIR) *.h
-
- distclean:: all-distclean-src all-distclean-test
-
- veryclean:: all-veryclean-src all-veryclean-test
-
- clean:: all-clean-src all-clean-test
-
- depend:: all-depend-src all-depend-test
-
- templates:: all-templates-src all-templates-test
-
- tests:: all-test
-
- install:: all-install
-
- links:: all-links
-
- sub-tar-rev:: all-sub-tar-rev
-
- all-sub-tar-rev::
- for f in $(FILES); do \
- if [ -f $$f ]; then \
- (cd ../$(TOPDIR) && \
- tar uf cncl-$(REVISION).tar cncl-$(REVISION)$(CUR_DIR)/$$f) \
- || exit; \
- fi; \
- done
-
- all-src all-templates-src all-clean-src all-veryclean-src all-distclean-src \
- all-depend-src all-install all-links all-sub-tar-rev::
- @for d in xx $(SUBDIRS); do \
- if [ -d $$d ]; then \
- ( echo "SUBDIR: $$d" && cd $$d && \
- $(MAKE) CUR_DIR=$(CUR_DIR)/$$d $@ ) \
- || exit; \
- fi \
- done
-
- all-test all-templates-test all-clean-test all-veryclean-test \
- all-distclean-test all-depend-test all-sub-tar-rev::
- @for d in xx $(TESTDIRS); do \
- if [ -d $$d/test ]; then \
- ( echo "TESTDIR: $$d/test" && cd $$d/test && \
- $(MAKE) CUR_DIR=$(CUR_DIR)/$$d/test $@ ) \
- || exit; \
- fi \
- done
-